package com.pp.mapper;

import com.pp.entity.*;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by lanou on 18/2/1.
 */
public interface SuccessMapper {
    Game findGame(Game game);
    int findUser(@Param("userName") String userName);
    Money findUserMoney(@Param("gid") int gid,@Param("uid") int uid);
    void setMoney(@Param("gid") int gid,@Param("uid") int uid);
    Money queryMoney(@Param("gid") int gid,@Param("uid") int uid);
    List<Shop> shopping (@Param("gid") int gid,@Param("id") int id);
    void pay(@Param("jine") int jine,@Param("uid") int uid,@Param("gid") int gid);
    Money findPay(@Param("uid") int uid,@Param("gid") int gid);
    List<Buy> getShop(@Param("did") int did, @Param("uid") int uid);
    Shop getMoney(@Param("did") int did);
    Money getUserMoney(@Param("uid") int uid,@Param("gid") int gid);
    void setBuy(@Param("did") int did, @Param("uid") int uid);
    void setAllMoney(@Param("allMoney") int allMoney,@Param("uid") int uid,@Param("gid") int gid);
    List<Shop> getBuy(@Param("uid") int uid);
   // Shop getBuy(@Param("id") int id);
}
